package cn.jslancer.enums;

import lombok.Getter;

/**
 * @author jslancer
 * @date 2017/11/5
 */
@Getter
public enum ResultEnum {
    UNKNOW_ERROR(false, -1, "未知错误"),
    CUSTOM_ERROR(false, 1, "自定义异常"),
    SUCCESS(true, 200, "成功");

    Boolean success;
    Integer code;
    String message;

    ResultEnum(Boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }
}
